var http = require('http');
var server = http.createServer(function (request, response) {
    // console.log('来了');
    //console.log(request);
    //response.write('来了');

    switch (request.url) {
        case "/a.html":
            response.write('a.html');
            break;
        case "/b.html":
            response.write('b.html');
            break;
        default:
            response.write('404');
    }

    response.end();
});

//监听-等着
//端口-数字
server.listen(8080);
